<template>
  <div id="userLayout">
    <a-layout style="min-height: 100vh">
      <a-layout-header class="header">
        <a-space>
          <img src="../assets/logo.svg" class="logo" />
          <div class="title">小韩-OJ</div>
        </a-space>
      </a-layout-header>
      <a-layout-content class="content">
        <router-view />
      </a-layout-content>
      <a-layout-footer class="footer">
        <a href="https://gitee.com/623233529" target="_blank">我的码云</a>
      </a-layout-footer>
    </a-layout>
  </div>
</template>

<script lang="ts"></script>

<style scoped>
#userLayout {
  margin: 0 auto;
  text-align: center;
}

#userLayout .logo {
  width: 40px;
  height: 40px;
}

#userLayout .title {
  font-size: 20px;
  margin-left: 20px;
}

#userLayout .header {
  box-shadow: #eee 0 0 10px;
}

#userLayout .content {
  background: linear-gradient(to right, skyblue, yellow, pink);
  padding: 20px;
}

#userLayout .footer {
  background: #000000;
  padding: 16px;
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;

  a {
    color: #ffffff;
    text-decoration: none;
  }
}
</style>
